package com.neu.edu.feign;

import com.neu.common.utils.R;
import com.neu.edu.vo.SocialUser;
import com.neu.edu.vo.UserLoginVo;
import com.neu.edu.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/gitee/login")
    R giteeLogin(@RequestBody SocialUser socialUser);

}
